package com.ztc.ZtcWallet.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.aqgj.util.BaseEntity;

import java.math.BigDecimal;

@Entity
@Table(name = "ztc_wallet")
public class ZtcWallet implements BaseEntity{

    private String id;//

    private String fkUserId;//业务id（用户ID，公司ID）

    private java.math.BigDecimal money;//钱包余额

    private String payPassword;//支付密码

    private String refferalCode;//推荐码

    private String extensionCode;//推广码

    private Integer businessType;//业务类型（1用户钱包，2公司钱包）

    private String alipayAccount;//支付宝账户

    private String weixinAccount;//微信账户

    private String weixinName;//微信真实姓名

    private String alipayName;//支付宝真实姓名

    private java.math.BigDecimal tmoney;//可提现金额


    public void setId(String value){
        this.id = value;
    }
    public void setFkUserId(String value){
        this.fkUserId = value;
    }
    public void setMoney(java.math.BigDecimal value){
        this.money = value;
    }
    public void setPayPassword(String value){
        this.payPassword = value;
    }
    public void setRefferalCode(String value){
        this.refferalCode = value;
    }
    public void setExtensionCode(String value){
        this.extensionCode = value;
    }
    public void setBusinessType(Integer businessType) { this.businessType = businessType;}
    public void setAlipayAccount(String alipayAccount) { this.alipayAccount = alipayAccount;}
    public void setWeixinAccount(String weixinAccount) { this.weixinAccount = weixinAccount;}
    public void setWeixinName(String weixinName) { this.weixinName = weixinName;}
    public void setAlipayName(String alipayName) { this.alipayName = alipayName; }
    public void setTmoney(BigDecimal tmoney) { this.tmoney = tmoney; }


    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="fk_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkUserId(){
        return this.fkUserId;
    }
    @Column(name ="money",unique=false,nullable=false,insertable=false,updatable=true,length=10)
    public java.math.BigDecimal getMoney(){
        return this.money;
    }
    @Column(name ="pay_password",unique=false,nullable=true,insertable=true,updatable=true,length=255)
    public String getPayPassword(){
        return this.payPassword;
    }
    @Column(name ="refferal_code",unique=false,nullable=true,insertable=true,updatable=true,length=18)
    public String getRefferalCode(){
        return this.refferalCode;
    }
    @Column(name ="extension_code",unique=false,nullable=true,insertable=true,updatable=true,length=18)
    public String getExtensionCode(){
        return this.extensionCode;
    }
    @Column(name ="business_type",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public Integer getBusinessType() { return businessType;}
    @Column(name ="alipay_account",unique=false,nullable=true,insertable=true,updatable=true,length=64)
    public String getAlipayAccount() { return alipayAccount;}
    @Column(name ="weixin_account",unique=false,nullable=true,insertable=true,updatable=true,length=64)
    public String getWeixinAccount() { return weixinAccount;}
    @Column(name ="weixin_name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getWeixinName() {  return weixinName;}
    @Column(name ="alipay_name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getAlipayName() {  return alipayName;}
    @Column(name ="tmoney",unique=false,nullable=false,insertable=false,updatable=true,length=10)
    public BigDecimal getTmoney() { return tmoney; }
}
